<template>
  <PageWrapper>
    <div class="bg">
      <a-space direction="vertical">
        <CountButton />
        <CountButton type="primary" />
        <CountDownInput size="large" v-model:value="smsCode" placeholder="验证码" :sendCodeApi="sendCodeApi" />
      </a-space>
    </div>
  </PageWrapper>
</template>

<script lang="ts" setup name="assemblyCountDown">
import { reactive, ref } from 'vue'
import PageWrapper from '@/components/PageWrapper/index.vue'
import CountButton from '@/components/CountDown/CountButton.vue'
import CountDownInput from '@/components/CountDown/CountDownInput.vue'
import api from '@/api'
const { genCheckSmSCode } = api
const smsCode = ref('')

const sendCodeApi = async () => {
  let res = await genCheckSmSCode()
  return true
}
</script>

<style lang="less" scoped>
.bg {
  width: 100%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
</style>
